package reflect;

import java.util.Arrays;

public class ArgDemo {
    public static void main(String[] args) {
        doSome(1,"one");
        doSome(2,"one","two");
        doSome(3,"one","two","three");
    }
public static void doSome(int i,String... arg) {
    System.out.println(arg.length);
    System.out.println(Arrays.toString(arg));
}
}
